home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / xml / AttributeGroup$1.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  1.2 KB  |  39 lines

  1. package com.extensibility.xml;
  2.  
  3. import com.extensibility.util.BasicEnumerator;
  4. import com.extensibility.util.Debug;
  5. import java.util.Enumeration;
  6.  
  7. class AttributeGroup$1 extends BasicEnumerator {
  8.    // $FF: synthetic field
  9.    final AttributeGroup this$0;
  10.    // $FF: renamed from: e java.util.Enumeration
  11.    Enumeration field_0;
  12.    // $FF: renamed from: e2 java.util.Enumeration
  13.    Enumeration field_1;
  14.  
  15.    protected Object getNext() {
  16.       while(this.field_1 == null || !this.field_1.hasMoreElements()) {
  17.          if (!this.field_0.hasMoreElements()) {
  18.             return null;
  19.          }
  20.  
  21.          Object var1 = this.field_0.nextElement();
  22.          if (!(var1 instanceof AttributeGroup)) {
  23.             Debug.assert(var1 instanceof AttributeDeclaration, "not an attr decl!");
  24.             return var1;
  25.          }
  26.  
  27.          this.field_1 = ((AttributeGroup)var1).getAttributes(true);
  28.       }
  29.  
  30.       return this.field_1.nextElement();
  31.    }
  32.  
  33.    AttributeGroup$1(AttributeGroup var1) {
  34.       this.this$0 = var1;
  35.       this.field_0 = this.this$0.attributes.elements();
  36.       this.field_1 = null;
  37.    }
  38. }
  39.